package com.project.bean;

import java.io.Serializable;

/**
 * 账户实体类
 */
public class UserBean implements Serializable {
    /**编号*/
    private int id;
    /**用户名*/
    private String code;
    /**密码*/
    private String psw = "111";
    /**真实姓名*/
    private String name;
    /**用户等级*/
    private String grade;

    public UserBean() {
    }

    public UserBean(String code, String name, String grade) {
        this.code = code;
        this.name = name;
        this.grade = grade;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPsw() {
        return psw;
    }

    public void setPsw(String psw) {
        this.psw = psw;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "Userabean{" +
                "code='" + code + '\'' +
                ", psw=" + psw +
                ", name='" + name + '\'' +
                ", grade='" + grade + '\'' +
                '}' + "\n";
    }
}
